package com.google.code.netbuilder.logging;

import org.slf4j.LoggerFactory;

public class NetBuilderLoggerFactory {

    /**
     * Get an NetBuilderLogger instance by name.
     *
     * @param name
     * @return NetBuilderLogger instance
     */
    public static NetBuilderLogger getDPLogger(String name) {
        return new NetBuilderLogger(LoggerFactory.getLogger(name));
    }

    /**
     * Get a new NetBuilderLogger instance by class. The returned
     * NetBuilderLogger will be named after the class.
     *
     * @param clazz
     * @return NetBuilderLogger instance by name
     */
    public static NetBuilderLogger getNetBuilderLogger(Class clazz) {
        return getDPLogger(clazz.getName());
    }
}
